
#ifndef _TTG_MATH_RANDOMIZER_
#define _TTG_MATH_RANDOMIZER_

namespace ttg
{
	namespace math
	{
		//Version for int types (int, long, size_t).
		template <class T>
		inline T getIntRandom(T low, T high)
		{
			T multiplier = high - low + 1;
			return (T)(((float)rand() / (RAND_MAX + 1)) * multiplier + low);
		}

		inline float getFloatRandom(float low, float high)
		{
			float multiplier = high - low;
			return ((float)rand() / (RAND_MAX)) * multiplier + low;
		}
	}
}

#endif